package org.ypx.db.entity;

import javax.persistence.*;

@Table(name = "user_group")
public class UserGroup {
    /**
     * 用户
     */
    @Id
    @Column(name = "user_id")
    private Long userId;

    /**
     * 组
     */
    @Id
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 获取用户
     *
     * @return user_id - 用户
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置用户
     *
     * @param userId 用户
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取组
     *
     * @return group_id - 组
     */
    public Long getGroupId() {
        return groupId;
    }

    /**
     * 设置组
     *
     * @param groupId 组
     */
    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }
}